package com.ruoyi.grape.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.grape.mapper.GrapeFitMapper;
import com.ruoyi.grape.domain.GrapeFit;
import com.ruoyi.grape.service.IGrapeFitService;

/**
 * 农事活动适宜性Service业务层处理
 * 
 * @author ld
 * @date 2023-11-18
 */
@Service
public class GrapeFitServiceImpl implements IGrapeFitService 
{
    @Autowired
    private GrapeFitMapper grapeFitMapper;

    /**
     * 查询农事活动适宜性
     * 
     * @param fitId 农事活动适宜性主键
     * @return 农事活动适宜性
     */
    @Override
    public GrapeFit selectGrapeFitByFitId(Long fitId)
    {
        return grapeFitMapper.selectGrapeFitByFitId(fitId);
    }

    /**
     * 查询农事活动适宜性列表
     * 
     * @param grapeFit 农事活动适宜性
     * @return 农事活动适宜性
     */
    @Override
    public List<GrapeFit> selectGrapeFitList(GrapeFit grapeFit)
    {
        return grapeFitMapper.selectGrapeFitList(grapeFit);
    }

    /**
     * 新增农事活动适宜性
     * 
     * @param grapeFit 农事活动适宜性
     * @return 结果
     */
    @Override
    public int insertGrapeFit(GrapeFit grapeFit)
    {
        return grapeFitMapper.insertGrapeFit(grapeFit);
    }

    /**
     * 修改农事活动适宜性
     * 
     * @param grapeFit 农事活动适宜性
     * @return 结果
     */
    @Override
    public int updateGrapeFit(GrapeFit grapeFit)
    {
        return grapeFitMapper.updateGrapeFit(grapeFit);
    }

    /**
     * 批量删除农事活动适宜性
     * 
     * @param fitIds 需要删除的农事活动适宜性主键
     * @return 结果
     */
    @Override
    public int deleteGrapeFitByFitIds(Long[] fitIds)
    {
        return grapeFitMapper.deleteGrapeFitByFitIds(fitIds);
    }

    /**
     * 删除农事活动适宜性信息
     * 
     * @param fitId 农事活动适宜性主键
     * @return 结果
     */
    @Override
    public int deleteGrapeFitByFitId(Long fitId)
    {
        return grapeFitMapper.deleteGrapeFitByFitId(fitId);
    }
}
